<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>JSP - Hello World</title>
</head>
<body>
<h1><%= "Hello World!" %>
</h1>
<br/>
<a href="hello-servlet">Hello Servlet</a>

<div>

    <div>
        <form action="hello-servlet">
            <div>
                姓名:<input type="text" value="" name="username">
            </div>
            <div>
                爱好：<input type="checkbox" value="抽烟" name="hobby"> 抽烟
                <input type="checkbox" value="喝酒" name="hobby"> 喝酒
                <input type="checkbox" value="烫头" name="hobby"> 烫头
            </div>
            <input type="submit" value="提交表单">
        </form>
    </div>
</div>
</body>
</html>